package com.giser.testapp.lib.NetWork;

import android.service.media.MediaBrowserService;

import java.util.List;

import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by Lss on 2017/11/30.
 */

public interface NewWorkService {
    @GET("api/AppManager")
    Call<String> getAppManagerAll();

    @GET("api/AppManager")
    Call<String> getAppManager(@Query("item") String item);

    @POST("api/AppManager")
    Call<String> putAppManager(@Body String user);

    @Multipart
    @POST("/member/uploadMemberIcon.do")
    Call<MediaBrowserService.Result<String>> uploadImage(@Part List<MultipartBody.Part> partList);

    @Multipart
    @POST("upload.php")
    Call<MediaBrowserService.Result<String>>  uploadSingelImage(@Part MultipartBody.Part file );
}
